package com.cpi.basilos.silo.form;

import java.util.List;

import javax.servlet.http.HttpServletRequest;


import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.cpi.basilos.silo.view.SiloDatesView;

public class SiloEntityForm extends ActionForm {
	private static final long serialVersionUID = 6642583934232680725L;
	private SiloDatesView siloDatesView = null;
	private List siloEntityViews = null;
	private List siloOutputViews = null;
	
	public SiloDatesView getSiloDatesView() {
		return siloDatesView;
	}
	public void setSiloDatesView(SiloDatesView siloDatesView) {
		this.siloDatesView = siloDatesView;
	}
	public List getSiloEntityViews() {
		return siloEntityViews;
	}
	public void setSiloEntityViews(List siloEntityViews) {
		this.siloEntityViews = siloEntityViews;
	}
	public List getSiloOutputViews() {
		return siloOutputViews;
	}
	public void setSiloOutputViews(List siloOutputViews) {
		this.siloOutputViews = siloOutputViews;
	}
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		if( siloDatesView != null ){
			siloDatesView.setEndDate(null);
			siloDatesView.setInitDate(null);
		}
	}
}